package com.pro.service;

import com.pro.pojo.JsBeforeUser;
import com.pro.pojo.JsUserCoupon;
import com.pro.pojo.JsUserCouponUsed;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface JsUserCouponService {

    public List<JsUserCoupon> getJsUserCouponList(JsUserCoupon jsUserCoupon);

    public List<JsUserCoupon> getJsUserCouponRetrieval(JsUserCoupon jsUserCoupon);

    public boolean updateJsUserCouponOnline(JsUserCoupon jsUserCoupon);

    public boolean deleteJsUserCoupon(Integer couponId);

    public List<JsBeforeUser> getJsUserCoupon(JsBeforeUser jsBeforeUser);

    public Integer getJsUserCouponState(@Param("usedState")Integer usedState, @Param("userId")Integer userId);

    public List<String> getJsUserCouponEnd(Integer userId);

    public boolean addJsUserCouponUsed(JsUserCouponUsed jsUserCouponUsed);

    public boolean updateJsUserCouponUsed(Integer couponId);

    public Integer getJsUserCouponSurplus(Integer couponId);

    public boolean addJsUserCoupon(JsUserCoupon jsUserCoupon);

    public List<Integer> getJsUserCouponCode();

    public String getJsUserCouponEndDate(Integer couponId);

}
